{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "64c308d6",
   "metadata": {},
   "source": [
    "# 为什么要学python"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ef88bec6",
   "metadata": {
    "scrolled": true
   },
   "source": [
    "# 第一章\n",
    "\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2574061f",
   "metadata": {},
   "source": [
    "* 难受ing\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2d6e0075",
   "metadata": {},
   "source": [
    "> 啊啊啊、\n",
    "\n",
    ">呵呵\n",
    "\n",
    ">你怎么能这样"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b5fac009",
   "metadata": {},
   "source": [
    "\n",
    "* 我丢你老母\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ef095be7",
   "metadata": {},
   "source": [
    "# 2.模块\n",
    "\n",
    ">1.says模块\n",
    "\n",
    ">2.os模块\n",
    "\n",
    ">3.datetime模块"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "bb3ce4ad",
   "metadata": {},
   "outputs": [],
   "source": [
    "import os"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "id": "9dd48897",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'D:\\\\2022-2023-1\\\\python\\\\week2'"
      ]
     },
     "execution_count": 60,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.getcwd()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "ba62c050",
   "metadata": {},
   "outputs": [],
   "source": [
    "import sys"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "689296d1",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'3.9.12 (main, Apr  4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]'"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sys.version"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "d119f9e2",
   "metadata": {},
   "outputs": [],
   "source": [
    "import datetime "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "e965c140",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "datetime.date(2022, 8, 30)"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "datetime.date.today()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "2f06e45a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Not an odd minute\n"
     ]
    }
   ],
   "source": [
    "from datetime import datetime\n",
    "\n",
    "odds= [  1, 3, 5, 7, 9, 11, 13, 15, 17, 19\n",
    "]\n",
    "\n",
    "right_this_minute = datetime.today().minute\n",
    "\n",
    "if right_this_minute in odds:\n",
    "     print(\"This minute seems a little odd\")\n",
    "else:\n",
    "    print(\"Not an odd minute\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "8aac24c0",
   "metadata": {},
   "outputs": [],
   "source": [
    "from datetime import datetime\n",
    "\n",
    "import random\n",
    "import time\n",
    "\n",
    "odds= [  1,  3, 5, 7, 9, 11, 13, 15, 17, 19\n",
    "               21， 23， 25， 27， 29， 31， 33， 35， 37,39\n",
    "       41， 43， 45， 47， 49， 51， 53， 57， 59 \n",
    " ]\n",
    "\n",
    "for i in range(5):\n",
    "    right_this_minute = datetime.today().minute\n",
    "    if right_this_minute in odds:\n",
    "        print(\"This minute seems a little odd.\")\n",
    "else:\n",
    "    print(\"Not an odd minute\")\n",
    "wait_time = random.randint(1, 60)\n",
    "time.sleep(wait_time)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ab775292",
   "metadata": {},
   "source": [
    "# 认识一下 time模块"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "cbf1ffcf",
   "metadata": {},
   "outputs": [],
   "source": [
    "import time"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "ae632763",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "time.struct_time(tm_year=2022, tm_mon=8, tm_mday=30, tm_hour=14, tm_min=30, tm_sec=48, tm_wday=1, tm_yday=242, tm_isdst=0)"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "time.localtime()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "8448fd2a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "1661841168.059598"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "time.time()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "4a283978",
   "metadata": {},
   "source": [
    "# 时间戳"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "d87e006d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "52.696639339059686"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "time.time()/60/60/24/365"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "a407bf81",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "1970"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "2022-52"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "ea36e15e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "time.struct_time(tm_year=2022, tm_mon=8, tm_mday=30, tm_hour=6, tm_min=33, tm_sec=57, tm_wday=1, tm_yday=242, tm_isdst=0)"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "time.gmtime()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "id": "4416217f",
   "metadata": {},
   "outputs": [
    {
     "ename": "NameError",
     "evalue": "name '我恨你啊啊啊啊' is not defined",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m                                 Traceback (most recent call last)",
      "Input \u001b[1;32mIn [41]\u001b[0m, in \u001b[0;36m<cell line: 1>\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[0m \u001b[38;5;28mprint\u001b[39m (\u001b[43m我恨你啊啊啊啊\u001b[49m)\n",
      "\u001b[1;31mNameError\u001b[0m: name '我恨你啊啊啊啊' is not defined"
     ]
    }
   ],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "id": "e1603715",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['D', 'o', 'n', \"'\", 't', ' ', 'p', 'a', 'n', 'i', 'c']"
      ]
     },
     "execution_count": 42,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "saying=\"Don't panic\"\n",
    "letters=list(saying)\n",
    "letters"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "id": "77c7c7b0",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'D'"
      ]
     },
     "execution_count": 45,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "letters[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "id": "6b5a4f71",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Provide a word to search for vowels:search\n",
      "e\n",
      "a\n"
     ]
    }
   ],
   "source": [
    "vowels=['a','e','i','o','u']\n",
    "word=input(\"Provide a word to search for vowels:\")\n",
    "found =[]\n",
    "for letter in word:\n",
    "    if letter in vowels:\n",
    "        if letter not in found:\n",
    "            found.append(letter)\n",
    "for vowel in found:\n",
    "    print(vowel)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "be43bcb4",
   "metadata": {},
   "source": [
    "## 2.模块--标准库\n",
    "* 标准库是python开发团队为满足Python用户日常需求而写好的一些模块，可以直接使用；import模块名称\n",
    ">1.sys模块\n",
    "\n",
    ">2.os模块\n",
    "\n",
    ">3.datetime模块"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "id": "896b4824",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "ename": "AttributeError",
     "evalue": "type object 'datetime.datetime' has no attribute 'datetime'",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mAttributeError\u001b[0m                            Traceback (most recent call last)",
      "Input \u001b[1;32mIn [55]\u001b[0m, in \u001b[0;36m<cell line: 1>\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[0m \u001b[43mdatetime\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mdatetime\u001b[49m\u001b[38;5;241m.\u001b[39mtaday()\u001b[38;5;241m.\u001b[39mmicrosecond\n",
      "\u001b[1;31mAttributeError\u001b[0m: type object 'datetime.datetime' has no attribute 'datetime'"
     ]
    }
   ],
   "source": [
    "datetime.datetime.taday().microsecond"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "id": "efea9449",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\复仇者联盟4短评_差评.txt'\n"
     ]
    }
   ],
   "source": [
    "__author__ = \"小柒\"\n",
    "__blog__ = \"https://blog.52itstyle.vip/\"\n",
    "import os\n",
    "# 导入requests库\n",
    "import requests\n",
    "# 导入文件操作库\n",
    "import codecs\n",
    "from bs4 import BeautifulSoup\n",
    "\n",
    "\n",
    "# 给请求指定一个请求头来模拟chrome浏览器\n",
    "global headers\n",
    "headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36',\n",
    "           'cookie': 'gr_user_id=e121d183-f3f8-4c4c-8f6f-deac2e134a81; bid=cxPQAI-Bxyg; __yadk_uid=LKQye5qAEvDkHM8U9WMRB4wIFawbSYDF; douban-fav-remind=1; ll=\"118221\"; _vwo_uuid_v2=D1C242F03E5FD61A09E0C1FE3106F4D0B|a4215ebb0c89a5aa37fcb62c3b92eb47; _pk_ref.100001.8cb4=%5B%22%22%2C%22%22%2C1556191176%2C%22https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DmibLGNNQiMDN_yIgz35YwO_RZBoP_vJ7xXWiIA89BOe%26wd%3D%26eqid%3Db873911b00197b1f000000035cc197be%22%5D; _pk_ses.100001.8cb4=*; __utma=30149280.891945692.1490618347.1553510394.1556191177.25; __utmc=30149280; __utmz=30149280.1556191177.25.12.utmcsr=baidu|utmccn=(organic)|utmcmd=organic; __utmt=1; ap_v=0,6.0; push_noty_num=0; push_doumail_num=0; ct=y; dbcl2=\"65246615:vr+bvtStGzA\"; ck=ppPi; __utmv=30149280.6524; _pk_id.100001.8cb4=ced92c32ea3c2dfe.1490618346.21.1556191552.1553510392.; __utmb=30149280.10.10.1556191177'}\n",
    "# 好评500条，中评500条，差评500条\n",
    "# https://movie.douban.com/subject/26266893/comments?start=0&limit=20&sort=new_score&status=P&percent_type=h\n",
    "# https://movie.douban.com/subject/26266893/comments?start=0&limit=20&sort=new_score&status=P&percent_type=m\n",
    "# https://movie.douban.com/subject/26266893/comments?start=0&limit=20&sort=new_score&status=P&percent_type=l\n",
    "server = 'https://movie.douban.com/subject/26100958/comments'\n",
    "# 定义存储位置\n",
    "global save_path\n",
    "save_path = os.getcwd()+\"\\\\Text\\\\\"+'复仇者联盟4短评_差评.txt'\n",
    "global page_max\n",
    "# 好评\n",
    "page_max = 252  # 500 短评论，后面就看不到了，不知道是否豆瓣有意而为之给隐藏了,哈哈哈原来是没登录导致的。\n",
    "global comments\n",
    "comments = ''\n",
    "\n",
    "\n",
    "# 获取短评内容\n",
    "def get_comments(page):\n",
    "    req = requests.get(url=page)\n",
    "    html = req.content\n",
    "    html_doc = str(html, 'utf-8')\n",
    "    bf = BeautifulSoup(html_doc, 'html.parser')\n",
    "    comment = bf.find_all(class_=\"short\")\n",
    "    for short in comment:\n",
    "        global comments\n",
    "        comments = comments + short.text\n",
    "\n",
    "\n",
    "# 写入文件\n",
    "def write_txt(chapter, content, code):\n",
    "    with codecs.open(chapter, 'a', encoding=code)as f:\n",
    "        f.write(content)\n",
    "\n",
    "\n",
    "# 主方法\n",
    "def main():\n",
    "    for i in range(0, page_max):\n",
    "        try:\n",
    "            page = server + '?start='+str(i*20)+'&limit=20&sort=new_score&status=P&percent_type=l'\n",
    "            get_comments(page)\n",
    "            write_txt(save_path, comments, 'utf8')\n",
    "        except Exception as e:\n",
    "            print(e)\n",
    "\n",
    "\n",
    "if __name__ == '__main__':\n",
    "    main()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "id": "500e5571",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n",
      "[Errno 2] No such file or directory: 'D:\\\\2022-2023-1\\\\python\\\\week2\\\\Text\\\\短评_好评.txt'\n"
     ]
    }
   ],
   "source": [
    "__author__ = \"小柒\"\n",
    "__blog__ = \"https://blog.52itstyle.vip/\"\n",
    "import os\n",
    "# 导入requests库\n",
    "import requests\n",
    "# 导入文件操作库\n",
    "import codecs\n",
    "from bs4 import BeautifulSoup\n",
    "\n",
    "\n",
    "# 给请求指定一个请求头来模拟chrome浏览器\n",
    "global headers\n",
    "headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36',\n",
    "           'cookie': 'network→www.douban.com→headers查看cookie'}\n",
    "# 好评500条，中评500条，差评500条\n",
    "# https://movie.douban.com/subject/26266893/comments?start=0&limit=20&sort=new_score&status=P&percent_type=h\n",
    "# https://movie.douban.com/subject/26266893/comments?start=0&limit=20&sort=new_score&status=P&percent_type=m\n",
    "# https://movie.douban.com/subject/26266893/comments?start=0&limit=20&sort=new_score&status=P&percent_type=l\n",
    "server = 'https://movie.douban.com/subject/26266893/comments'\n",
    "# 定义存储位置\n",
    "global save_path\n",
    "save_path = os.getcwd()+\"\\\\Text\\\\\"+'短评_好评.txt'\n",
    "global page_max\n",
    "# 好评 499*20=9980\n",
    "page_max = 499  # 500 短评论，后面就看不到了，不知道是否豆瓣有意而为之给隐藏了,哈哈哈原来是没登录导致的。\n",
    "global comments\n",
    "comments = ''\n",
    "\n",
    "\n",
    "# 获取短评内容\n",
    "def get_comments(page):\n",
    "    req = requests.get(url=page)\n",
    "    html = req.content\n",
    "    html_doc = str(html, 'utf-8')\n",
    "    bf = BeautifulSoup(html_doc, 'html.parser')\n",
    "    comment = bf.find_all(class_=\"short\")\n",
    "    for short in comment:\n",
    "        global comments\n",
    "        comments = comments + short.text\n",
    "\n",
    "\n",
    "# 写入文件\n",
    "def write_txt(chapter, content, code):\n",
    "    with codecs.open(chapter, 'a', encoding=code)as f:\n",
    "        f.write(content)\n",
    "\n",
    "\n",
    "# 主方法\n",
    "def main():\n",
    "    for i in range(0, page_max):\n",
    "        try:\n",
    "            page = server + '?start='+str(i*20)+'&limit=20&sort=new_score&status=P&percent_type=h'\n",
    "            get_comments(page)\n",
    "            write_txt(save_path, comments, 'utf8')\n",
    "        except Exception as e:\n",
    "            print(e)\n",
    "\n",
    "\n",
    "if __name__ == '__main__':\n",
    "    main()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "9ef8c2a5",
   "metadata": {},
   "outputs": [],
   "source": [
    "#!/usr/bin/python\n",
    "# -*- coding:UTF-8 -*-\n",
    "\n",
    "\"\"\"外观模式(Facade Pattern):为子系统中的一组接口提供一个一致界面,此模式定义一个高层接口,使得子系统更加容易使用\"\"\"\n",
    "__author__ = \"王志鹏\"\n",
    "\n",
    "class Stock1:\n",
    "    def Buy(self):\n",
    "        print \"股票一, 买入\"\n",
    "\n",
    "    def Sell(self):\n",
    "        print \"股票一, 卖出\"\n",
    "\n",
    "\n",
    "class Stock2:\n",
    "    def Buy(self):\n",
    "        print \"股票二, 买入\"\n",
    "\n",
    "    def Sell(self):\n",
    "        print \"股票二, 卖出\"\n",
    "\n",
    "\n",
    "class Stock3:\n",
    "    def Buy(self):\n",
    "        print \"股票三, 买入\"\n",
    "\n",
    "    def Sell(self):\n",
    "        print \"股票三, 卖出\"\n",
    "\n",
    "\n",
    "class NationalDebt1():\n",
    "    def Buy(self):\n",
    "        print \"国债, 买入\"\n",
    "\n",
    "    def Sell(self):\n",
    "        print \"国债, 卖出\"\n",
    "\n",
    "\n",
    "class Realty1:\n",
    "    def Buy(self):\n",
    "        print \"房地产, 买入\"\n",
    "\n",
    "    def Sell(self):\n",
    "        print \"房地产, 卖出\"\n",
    "\n",
    "\n",
    "# 外观类\n",
    "class Fund:\n",
    "    def __init__(self):\n",
    "        self.Stock1 = Stock1()\n",
    "        self.Stock1 = Stock2()\n",
    "        self.Stock1 = Stock3()\n",
    "        self.NationalDebt1 = NationalDebt1()\n",
    "        self.Realty1 = Realty1()\n",
    "\n",
    "    def buy(self):\n",
    "        self.Stock1.Buy()\n",
    "        self.Stock2.Buy()\n",
    "        self.Stock3.Buy()\n",
    "        self.NationalDebt1.Buy()\n",
    "        self.Realty1.Buy()\n",
    "\n",
    "    def sell(self):\n",
    "        self.Stock1.Sell()\n",
    "        self.Stock2.Sell()\n",
    "        self.Stock3.Sell()\n",
    "        self.NationalDebt1.Sell()\n",
    "        self.Realty1.Sell()\n",
    "\n",
    "\n",
    "if __name__ == '__main__':\n",
    "    pass"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "873eb42a",
   "metadata": {},
   "outputs": [],
   "source": [
    "from wxpy import *\n",
    "import math\n",
    "from PIL import Image\n",
    "import os\n",
    "\n",
    "\n",
    "# 创建头像存放文件夹\n",
    "def create_filePath():\n",
    "    avatar_dir = os.getcwd() + \"\\\\wechat\\\\\"\n",
    "    if not os.path.exists(avatar_dir):\n",
    "        os.mkdir(avatar_dir)\n",
    "    return avatar_dir\n",
    "\n",
    "\n",
    "# 保存好友头像\n",
    "def save_avatr(avatar_dir):\n",
    "    # 初始化机器人，扫码登录\n",
    "    bot = Bot()\n",
    "    friends = bot.friends(update=True)\n",
    "    num = 0\n",
    "    for friend in friends:\n",
    "        friend.get_avatar(avatar_dir + '\\\\' + str(num) + \".jpg\")\n",
    "        print('好友昵称:%s' % friend.nick_name)\n",
    "        num = num + 1\n",
    "\n",
    "\n",
    "# 拼接头像\n",
    "def joint_avatar(path):\n",
    "    # 获取文件内头像个数\n",
    "    length = len(os.listdir(path))\n",
    "    # 设置画布大小\n",
    "    # image_size = 2500\n",
    "    # 设置每个头像大小\n",
    "    each_size = math.ceil(2560 / math.floor(math.sqrt(length)))\n",
    "    # 计算所需各行列的头像数量\n",
    "    x_lines = math.ceil(math.sqrt(length))\n",
    "    y_lines = math.ceil(math.sqrt(length))\n",
    "    image = Image.new('RGB', (each_size * x_lines, each_size * y_lines))\n",
    "    x = 0\n",
    "    y = 0\n",
    "    for(root, dirs, files) in os.walk(path):\n",
    "        for pic_name in files:\n",
    "            # 增加头像读不出来的异常处理\n",
    "            try:\n",
    "                with Image.open(path + pic_name) as img:\n",
    "                    img = img.resize((each_size, each_size))\n",
    "                    image.paste(img, (x * each_size, y * each_size))\n",
    "                    x += 1\n",
    "                    if x == x_lines:\n",
    "                        x = 0\n",
    "                        y += 1\n",
    "            except IOError:\n",
    "                print(\"头像读取失败\")\n",
    "    image.save(os.getcwd() + \"/wechat.png\")\n",
    "    print('微信好友头像拼接完成!')\n",
    "\n",
    "\n",
    "if __name__ == '__main__':\n",
    "    avatar_dir = create_filePath()\n",
    "    save_avatr(avatar_dir)\n",
    "    joint_avatar(avatar_dir)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1bde8e94",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
